package com.ming_za.od_updater_sdk.server_api.result_obj.data;

import okhttp3.Response;

import java.io.InputStream;

/**
 * 资源文件数据信息
 */
public class ResFileInfo {

    /**
     * 文件大小
     */
    private long fileSize;
    /**
     * 文件输入流
     */
    private InputStream inputStream;

    private Response response;

    public ResFileInfo(long fileSize, InputStream inputStream, Response response) {
        this.fileSize = fileSize;
        this.inputStream = inputStream;
        this.response = response;
    }

    public ResFileInfo() {
        this.response = null;
        this.fileSize = 0;
        this.inputStream = null;
    }

    public Response getResponse() {
        return response;
    }

    public void setResponse(Response response) {
        this.response = response;
    }

    public long getFileSize() {
        return fileSize;
    }

    public void setFileSize(int fileSize) {
        this.fileSize = fileSize;
    }

    public void setInputStream(InputStream inputStream) {
        this.inputStream = inputStream;
    }

    public InputStream getInputStream() {
        return inputStream;
    }
}
